package cn.edu.scau.cmi.zhangjunming.client;

import java.net.URL;

import cn.edu.scau.cmi.zhangjunming.comprehensive.ComprehensiveController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
//import cn.edu.scau.cmi.zhangjunming.comprehensive.*;
public class FinalClient extends Application{

	public FinalClient() {
		
	}

	
	public void start(Stage primaryStage) throws Exception {
	     try {
	    	 ComprehensiveController.setStage(primaryStage);
	    	 Parent root = FXMLLoader.load(getFxmlUrl());
	    	 primaryStage.setTitle("综合性实验");
	    	 primaryStage.setScene(new Scene(root));
	    	 primaryStage.show();
	     }catch(Exception event) {
	    	 event.printStackTrace();
	     }
		
	}
	
	private URL getFxmlUrl() {
		ComprehensiveController comprohensiveController = new ComprehensiveController();
		return comprohensiveController.getClass().getResource("Comprehensive.fxml");
	}
	
	public static void main(String[] args) {
		launch(args);
	}

}
